const { BaseBehavior } = require('../../mixins/component');
const { PAGE_NAV } = require('../../constants/route');
const { navTo } = require('../../common/platform');

Component({
    behaviors: [BaseBehavior],
    properties: {
        storeInfo: {
            type: Object,
            value: {},
        },
    },
    data: {

    },
    methods: {
        // 前往专场
        gotoSpecial() {
            const { storeInfo } = this.data;
            navTo(PAGE_NAV.special, {
                storeId: storeInfo.id,
                storeName: storeInfo.name,
            });
        },
    }
})
